package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysStudentEvaluateMapper;
import com.ruoyi.system.domain.SysStudentEvaluate;
import com.ruoyi.system.service.ISysStudentEvaluateService;

/**
 * 帮扶评价Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-23
 */
@Service
public class SysStudentEvaluateServiceImpl implements ISysStudentEvaluateService 
{
    @Autowired
    private SysStudentEvaluateMapper sysStudentEvaluateMapper;

    /**
     * 查询帮扶评价
     * 
     * @param id 帮扶评价主键
     * @return 帮扶评价
     */
    @Override
    public SysStudentEvaluate selectSysStudentEvaluateById(Long id)
    {
        return sysStudentEvaluateMapper.selectSysStudentEvaluateById(id);
    }

    /**
     * 查询帮扶评价列表
     * 
     * @param sysStudentEvaluate 帮扶评价
     * @return 帮扶评价
     */
    @Override
    public List<SysStudentEvaluate> selectSysStudentEvaluateList(SysStudentEvaluate sysStudentEvaluate)
    {
        return sysStudentEvaluateMapper.selectSysStudentEvaluateList(sysStudentEvaluate);
    }

    /**
     * 新增帮扶评价
     * 
     * @param sysStudentEvaluate 帮扶评价
     * @return 结果
     */
    @Override
    public int insertSysStudentEvaluate(SysStudentEvaluate sysStudentEvaluate)
    {
        return sysStudentEvaluateMapper.insertSysStudentEvaluate(sysStudentEvaluate);
    }

    /**
     * 修改帮扶评价
     * 
     * @param sysStudentEvaluate 帮扶评价
     * @return 结果
     */
    @Override
    public int updateSysStudentEvaluate(SysStudentEvaluate sysStudentEvaluate)
    {
        return sysStudentEvaluateMapper.updateSysStudentEvaluate(sysStudentEvaluate);
    }

    /**
     * 批量删除帮扶评价
     * 
     * @param ids 需要删除的帮扶评价主键
     * @return 结果
     */
    @Override
    public int deleteSysStudentEvaluateByIds(Long[] ids)
    {
        return sysStudentEvaluateMapper.deleteSysStudentEvaluateByIds(ids);
    }

    /**
     * 删除帮扶评价信息
     * 
     * @param id 帮扶评价主键
     * @return 结果
     */
    @Override
    public int deleteSysStudentEvaluateById(Long id)
    {
        return sysStudentEvaluateMapper.deleteSysStudentEvaluateById(id);
    }
}
